package com.hackintosh.responsibility.oa;

/**
 * @description：
 * @author：twislyn
 * @date：Created in 2021/05/20
 * @modified By：
 * @version: 1.0
 */
public class LeaveApprovalTest {
    public static void main(String[] args) {
        Leader classAdviser = new ClassAdviser();
        Leader departmentHead = new DepartmentHead();
        Leader dean = new Dean();
        Leader deanOfStudies = new DeanOfStudies();

        classAdviser.setNext(departmentHead);
        departmentHead.setNext(dean);
        dean.setNext(deanOfStudies);
        classAdviser.handlerRequest(8);
    }
}
